﻿// ********************************************
// ClassName  ：  WaveData.cs
// Author        ：
// Company     ： 智测心控
// Version        ：V1.0
// CreateTime ： {date}
// Description ：
// ********************************************

using System;
using DcpServer.Domain.BaseModels;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace DcpServer.Domain
{
    /// <summary>
    /// 波形数据表
    /// </summary>
    [Table("VSIS_WaveData", Schema = "dbo")]
    public class WaveData : BasePatientModel
    {
        public WaveData(Guid preArchiveId)
        {
            Ecg = Array.Empty<ushort>();
            Resp = Array.Empty<byte>();
            Spo2 = Array.Empty<byte>();
            OriginEcg = Array.Empty<byte>();
            OriginResp = Array.Empty<byte>();
            OriginSpo2 = Array.Empty<byte>();
            ArchiveRecordsId = preArchiveId;
        }

        public WaveData()
        {
            Ecg = Array.Empty<ushort>();
            Resp = Array.Empty<byte>();
            Spo2 = Array.Empty<byte>();
            OriginEcg = Array.Empty<byte>();
            OriginResp = Array.Empty<byte>();
            OriginSpo2 = Array.Empty<byte>();
            ArchiveRecordsId = Guid.Empty;
        }

        /// <summary>
        /// 序号
        /// </summary>
        public int SerialNo { get; set; }

        /// <summary>
        /// 心电波形
        /// </summary>
        [Description("心电波形")]
        public ushort[] Ecg { get; set; }

        /// <summary>
        /// 呼吸率
        /// </summary>
        [Description("呼吸率")]
        public byte[] Resp { get; set; }

        /// <summary>
        /// 血氧
        /// </summary>
        [Description("血氧")]
        public byte[] Spo2 { get; set; }

        /// <summary>
        /// 心电波形
        /// </summary>
        [Description("心电波形原始值")]
        public byte[] OriginEcg { get; set; }

        /// <summary>
        /// 呼吸率
        /// </summary>
        [Description("呼吸率原始值")]
        public byte[] OriginResp { get; set; }

        /// <summary>
        /// 血氧
        /// </summary>
        [Description("血氧原始值")]
        public byte[] OriginSpo2 { get; set; }

        /// <summary>
        /// 归档记录ID
        /// </summary>
        public Guid ArchiveRecordsId { get; set; }
    }
}